<?php
// ------------------------------------------------------------------------
// |@Author       : Jarmin <edshop@qq.com>
// |@----------------------------------------------------------------------
// |@Date         : 2023-06-06 16:01:53
// |@----------------------------------------------------------------------
// |@LastEditTime : 2023-12-19 00:09:51
// |@----------------------------------------------------------------------
// |@LastEditors  : Jarmin <jarmin@ladmin.cn>
// |@----------------------------------------------------------------------
// |@Description  : 路由文件，设置应用的路由规则。
// |@----------------------------------------------------------------------
// |@FilePath     : app.php
// |@----------------------------------------------------------------------
// |@Copyright (c) 2023 http://www.ladmin.cn   All rights reserved. 
// ------------------------------------------------------------------------
use think\facade\Route;
use think\admin\middleware\Auth;

Route::get('config/list'            , 'Config/list');
Route::post('config/lang'           , 'Config/lang');
Route::group('/', function(){
    Route::get('user/list'          , 'User/list');
    Route::post('user/add'          , 'User/add');
    Route::post('user/edit'         , 'User/edit');
    Route::put('user/state'         , 'User/state');
    Route::post('user/reset'        , 'User/reset');
    Route::delete('user/delete'     , 'User/delete');
    Route::get('dept/list'          , 'Dept/list');
    Route::post('dept/add'          , 'Dept/add');
    Route::post('dept/edit'         , 'Dept/edit');
    Route::delete('dept/delete'     , 'Dept/delete');
    Route::get('role/list'          , 'Role/list');
    Route::get('role/auth'          , 'Role/auth');
    Route::post('role/add'          , 'Role/add');
    Route::post('role/edit'         , 'Role/edit');
    Route::post('role/allot'        , 'Role/allot');
    Route::put('role/state'         , 'Role/state');
    Route::delete('role/delete'     , 'Role/delete');
    Route::get('menu/list'          , 'Menu/list');
    Route::post('menu/add'          , 'Menu/add');
    Route::post('menu/edit'         , 'Menu/edit');
    Route::put('menu/sort'          , 'Menu/sort');
    Route::delete('menu/delete'     , 'Menu/delete');
    Route::get('folder/list'        , 'Folder/list');
    Route::post('folder/add'        , 'Folder/add');
    Route::post('folder/edit'       , 'Folder/edit');
    Route::post('folder/move'       , 'Folder/move');
    Route::delete('folder/delete'   , 'Folder/delete');
    Route::get('file/list'          , 'File/list');
    Route::get('file/exts'          , 'File/exts');
    Route::post('file/edit'         , 'File/edit');
    Route::post('file/upload'       , 'File/upload');
    Route::delete('file/delete'     , 'File/delete');
    Route::post('config/save'       , 'Config/save');
})->middleware(Auth::class);